﻿<div class="test-component">
    <h1>@Title</h1>
    <button class="test-component__close-button" @onclick="BlazoredModal.CloseAsync">Close</button>
</div>

@code {
    [CascadingParameter] BlazoredModalInstance BlazoredModal { get; set; }

    [Parameter] public string Title { get; set; } = DefaultTitle;

    public static string DefaultTitle = "My Test Component";

}
